package org.glut.cloud.serviceRating.feign;

import org.glut.cloud.serviceRating.dto.MaintenanceRecords;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;

import java.util.List;

/**
 * @author weisiyuan
 * @createtime 2024/8/13 21:43
 */
@FeignClient(value = "repair-RepairRecordManage")
public interface MaintenanceRecordsService {

    @PostMapping("/maintenance-records/select_1/{userNo}/{evaStatus}")
    List<MaintenanceRecords> select_1(@PathVariable Integer userNo,
                                      @PathVariable String evaStatus);

    @PutMapping("/maintenance-records/updateStatus/{maintenanceRecordsId}")
    boolean updateStatus(@PathVariable Integer maintenanceRecordsId);
}
